package com.one.consumer.reserve.presenter;

import android.content.Context;

import com.one.common.common.user.modle.UserInfoModel;
import com.one.common.model.http.callback.ObserverOnResultListener;
import com.one.common.presenter.BaseApiPresenter;
import com.one.common.view.base.BaseActivity;
import com.one.common.view.base.IView;

import org.xutils.common.util.LogUtil;

/**
 * Created by Nico on 2019/3/31.
 */

public class YouhuijuanPresenter extends BaseApiPresenter<IView, UserInfoModel> {
    public YouhuijuanPresenter(IView mView, Context mContext) {
        super(mView, mContext,  new UserInfoModel((BaseActivity) mContext));
    }

    public void getAll() {

        mModel.getYouhuijuan( new ObserverOnResultListener<String>() {
            @Override
            public void onResult(String s) {
//                if (mView != null) {
//                    mView.finishPage();

//                }

                LogUtil.e("getYouhuijuan "+s);
            }
        });
    }
}
